<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>" />
<title>${title }</title>
<script language="javascript" type="text/javascript" src="<%=basePath%>My97DatePicker/WdatePicker.js" charset="utf-8"></script>
</head>

<body>
	<jsp:include page="header.jsp"></jsp:include>
	<div class="block box">
		<div class="blank"></div>
		<div id="ur_here">
			当前位置: <a href=".">首页</a>
			<code> &gt; </code>
			<a href="index/cars.action">全部车辆</a>
			<code> &gt; </code>
			${cars.carno }
		</div>
	</div>
	<div class="blank"></div>
	<div class="block clearfix">
		<div class="AreaL">
			<div class="box" id='history_div'>
				<div class="box_1">
					<h3>
						<span>热门车辆</span>
					</h3>
					<div class="boxCenterList clearfix" id='history_list'>
						<c:forEach items="${hotList}" var="cars">
							<ul class="clearfix">
								<li class="goodsimg"><a href="index/carsdetail.action?id=${cars.carsid }" target="_blank"><img
										src="${cars.image }" alt="${cars.carno }" class="B_blue" /> </a></li>
								<li><a href="index/detail.action?id=${cars.carsid }" target="_blank" title="${cars.carno }">${cars.carno }</a>
								</li>
							</ul>
						</c:forEach>
					</div>
				</div>
			</div>
			<div class="blank5"></div>
		</div>
		<div class="AreaR">

			<div id="goodsInfo" class="clearfix">
				<div class="imgInfo">
					<img src="${cars.image}" alt="${cars.carno }" width="360px;" height="360px" />
					<div class="blank5"></div>
					<div class="blank"></div>
				</div>
				<div class="textInfo">
					<h1 class="clearfix">${cars.carno }</h1>
					<ul class="ul2 clearfix">
						<li class="clearfix" style="width: 100%">
							<dd>
								<strong>教练：</strong><a href="index/teacherdetail.action?id=${cars.teacherid }">${cars.realname }</a>
							</dd>
						</li>
						<li class="clearfix" style="width: 100%">
							<dd>
								<strong>车辆品牌：</strong>${cars.brandname }
							</dd>
						</li>
						<li class="clearfix" style="width: 100%">
							<dd>
								<strong>车辆颜色：</strong>${cars.colors }
							</dd>
						</li>
						<li class="clearfix" style="width: 100%">
							<dd>
								<strong>出厂日期 ：</strong>${cars.buydate }
							</dd>
						</li>
					</ul>
					<form action="index/addorder.action" method="post" name="ECS_FORMBUY" id="ECS_FORMBUY">
						<ul class="bnt_ul">
							<li class="clearfix" style="width: 100%"><strong>预约时间段：</strong><br>
									<table>
										<c:forEach items="${sectionsList}" var="sections">
											<tr>
												<td><input type="radio" name="sectionsid" value="${sections.sectionsid }" checked="checked" />${sections.sectionsname }&nbsp;(￥${sections.price }元)&nbsp;</td>
											</tr>
										</c:forEach>
									</table></li>
							<li class="clearfix">
								<dd>
									<strong>预约日期：</strong> <input name="orderdate" type="text" readonly="readonly" onclick="WdatePicker()"
										style="border: 1px solid #ccc;" /> <input type="hidden" name="carsid" value="${cars.carsid }" />
								</dd>
							</li>
							<li class="padd"><input type="image" src="themes/xecmoban_shunfeng/images/goumai2.png" /></li>
						</ul>
					</form>
				</div>
			</div>
			<div class="blank"></div>


			<div class="box">
				<div style="padding: 0 0px;">
					<div id="com_b" class="history clearfix">
						<h2>车辆描述</h2>
					</div>
				</div>
				<div class="box_1">
					<div id="com_v" class="  " style="padding: 6px;"></div>
					<div id="com_h">
						<blockquote>${cars.contents}</blockquote>
					</div>
				</div>
			</div>
			<div class="blank5"></div>
			<div id="ECS_COMMENT">
				<div class="box">
					<div class="box_1">
						<h3>
							<span class="text">用户评论</span>(共<font class="f1">${tnum }</font>条评论)
						</h3>
						<div class="boxCenterList clearfix" style="height: 1%;">
							<ul class="comments">
								<c:forEach items="${topicList}" var="topic">
									<li class="word"><font class="f2">${topic.username }</font> <font class="f3">( ${topic.addtime } )</font><br />
										<img src="themes/xecmoban_shunfeng/images/stars${topic.num }.gif" alt="" />
										<p>${topic.contents }</p></li>
								</c:forEach>
							</ul>
							<div class="blank5"></div>
						</div>
					</div>
				</div>
			</div>
		</div>

	</div>
	<jsp:include page="footer.jsp"></jsp:include>
</body>
</html>
